package dancetiktokenumsmysql

const (
	DancePetSp = 1 //SP级别宠物
	DancePetS  = 2 //S级别宠物
	DancePetA  = 3 //A级别宠物
	DancePetB  = 4 //B级别宠物
	DancePetSS = 5 //SS级别宠物
)

type DancePetQualityEnums struct {
}

var DancePetQualityObject DancePetQualityEnums

func (d DancePetQualityEnums) ConditionsType() []int {
	return []int{
		DancePetSp,
		DancePetS,
		DancePetA,
		DancePetB,
		DancePetSS,
	}
}

func (d DancePetQualityEnums) ConditionsTypeMap() map[int]string {
	m := make(map[int]string)
	for _, s := range d.ConditionsType() {
		m[s] = d.ConditionsTypeString(s)
	}
	return m
}

func (d DancePetQualityEnums) ConditionsTypeString(tag int) string {
	switch tag {
	case DancePetSp:
		return "SP"
	case DancePetS:
		return "S"
	case DancePetA:
		return "A"
	case DancePetB:
		return "B"
	case DancePetSS:
		return "SS"
	default:
		return "B"
	}
}
